.class Les/d90;
.super Ljava/lang/Object;
.source "DirUtils.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/d90$a;
    }
.end annotation


# instance fields
.field private a:Lcom/estrongs/fs/f;

.field b:Les/d90$a;

.field c:Les/d90$a;


# direct methods
.method public constructor <init>(Lcom/estrongs/fs/g;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    iput-object v0, p0, Les/d90;->a:Lcom/estrongs/fs/f;

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/d90;->b:Les/d90$a;

    .line 4
    iput-object v0, p0, Les/d90;->c:Les/d90$a;

    .line 5
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 6
    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 7
    new-instance p1, Les/d90$a;

    invoke-direct {p1, v0}, Les/d90$a;-><init>(Ljava/util/List;)V

    iput-object p1, p0, Les/d90;->b:Les/d90$a;

    .line 8
    iget-object p1, p1, Les/d90$a;->c:Ljava/util/List;

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/fs/g;

    invoke-interface {p1}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object p1

    sget-object v0, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    if-ne p1, v0, :cond_0

    .line 9
    iget-object p1, p0, Les/d90;->b:Les/d90$a;

    invoke-direct {p0, p1}, Les/d90;->a(Les/d90$a;)Les/d90$a;

    move-result-object p1

    iput-object p1, p0, Les/d90;->c:Les/d90$a;

    goto :goto_0

    .line 10
    :cond_0
    iget-object p1, p0, Les/d90;->b:Les/d90$a;

    iput-object p1, p0, Les/d90;->c:Les/d90$a;

    :goto_0
    return-void
.end method

.method private a(Les/d90$a;)Les/d90$a;
    .locals 3

    .line 20
    iget v0, p1, Les/d90$a;->e:I

    .line 21
    :try_start_0
    iget-object v1, p0, Les/d90;->a:Lcom/estrongs/fs/f;

    iget-object v2, p1, Les/d90$a;->c:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/estrongs/fs/f;->n(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 22
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    .line 23
    new-instance v1, Les/d90$a;

    invoke-direct {v1, v0}, Les/d90$a;-><init>(Ljava/util/List;)V

    .line 24
    invoke-static {p1, v1}, Les/d90$a;->b(Les/d90$a;Les/d90$a;)Les/d90$a;

    .line 25
    invoke-static {v1, p1}, Les/d90$a;->a(Les/d90$a;Les/d90$a;)Les/d90$a;
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    move-object p1, v1

    goto :goto_0

    :catch_0
    move-exception v0

    .line 26
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-object p1
.end method


# virtual methods
.method public a()Lcom/estrongs/fs/g;
    .locals 7

    .line 1
    iget-object v0, p0, Les/d90;->b:Les/d90$a;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 2
    :cond_0
    iget-boolean v2, v0, Les/d90$a;->d:Z

    const/4 v3, 0x0

    const/4 v4, 0x1

    if-nez v2, :cond_1

    .line 3
    iput-boolean v4, v0, Les/d90$a;->d:Z

    .line 4
    iget-object v0, v0, Les/d90$a;->c:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    return-object v0

    .line 5
    :cond_1
    :goto_0
    iget-object v0, p0, Les/d90;->c:Les/d90$a;

    invoke-static {v0}, Les/d90$a;->a(Les/d90$a;)Les/d90$a;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 6
    iget-object v0, p0, Les/d90;->c:Les/d90$a;

    iget v2, v0, Les/d90$a;->e:I

    .line 7
    iget-object v0, v0, Les/d90$a;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v2, v0, :cond_2

    .line 8
    iget-object v0, p0, Les/d90;->c:Les/d90$a;

    invoke-static {v0}, Les/d90$a;->a(Les/d90$a;)Les/d90$a;

    move-result-object v0

    iput-object v0, p0, Les/d90;->c:Les/d90$a;

    .line 9
    invoke-static {v0, v1}, Les/d90$a;->b(Les/d90$a;Les/d90$a;)Les/d90$a;

    goto :goto_0

    .line 10
    :cond_2
    iget-object v0, p0, Les/d90;->c:Les/d90$a;

    iget-boolean v5, v0, Les/d90$a;->d:Z

    if-nez v5, :cond_3

    iget-object v0, v0, Les/d90$a;->c:Ljava/util/List;

    .line 11
    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    invoke-interface {v0}, Lcom/estrongs/fs/g;->i()Lcom/estrongs/fs/l;

    move-result-object v0

    sget-object v5, Lcom/estrongs/fs/l;->c:Lcom/estrongs/fs/l;

    if-ne v0, v5, :cond_3

    .line 12
    iget-object v0, p0, Les/d90;->c:Les/d90$a;

    iget-object v0, v0, Les/d90$a;->c:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 13
    iget-object v1, p0, Les/d90;->c:Les/d90$a;

    iput-boolean v4, v1, Les/d90$a;->d:Z

    .line 14
    invoke-direct {p0, v1}, Les/d90;->a(Les/d90$a;)Les/d90$a;

    move-result-object v1

    iput-object v1, p0, Les/d90;->c:Les/d90$a;

    return-object v0

    .line 15
    :cond_3
    iget-object v0, p0, Les/d90;->c:Les/d90$a;

    iget-boolean v5, v0, Les/d90$a;->d:Z

    .line 16
    iget-object v0, v0, Les/d90$a;->c:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 17
    iget-object v2, p0, Les/d90;->c:Les/d90$a;

    iget v6, v2, Les/d90$a;->e:I

    add-int/2addr v6, v4

    iput v6, v2, Les/d90$a;->e:I

    .line 18
    iput-boolean v3, v2, Les/d90$a;->d:Z

    if-nez v5, :cond_1

    return-object v0

    .line 19
    :cond_4
    iput-object v1, p0, Les/d90;->b:Les/d90$a;

    return-object v1
.end method
